<?php $this->pageTitle=Yii::app()->params->title . ' - '.CHtml::encode($post->title); ?>

<?php $this->renderPartial('_post',array(
	'post'=>$post,
)); ?>

<div id="comments">
<?php if($post->commentCount>=1): ?>
<h3>
  <?php echo $post->commentCount>1 ? $post->commentCount . ' comentarios' : 'Un comentario'; ?>
  para "<?php echo CHtml::encode($post->title); ?>"
</h3>
<?php endif; ?>

<?php $this->renderPartial('/comment/_list',array(
	'comments'=>$comments,
	'post'=>$post,
)); ?>

  <a name="leave_comment"></a><h3>Escribe un comentario</h3>

<?php $this->renderPartial('/comment/_form',array(
	'comment'=>$newComment,
  'post'=>$post,
	'update'=>false,
)); ?>

</div><!-- comments -->
